package dongshi.daddy.service;

import com.alibaba.dubbo.rpc.service.GenericException;
import com.alibaba.dubbo.rpc.service.GenericService;
import static dongshi.daddy.contant.GenericInterfaceConstant.*;

public class MyGenericServiceImpl implements GenericService {

    @Override
    public Object $invoke(String method, String[] parameterTypes, Object[] args) throws GenericException {
        if (SAY_HI.equals(method)) {
            return "方法名：" + SAY_HI + ", 入参：" + args[0];
        }
        return "no such method!!!";
    }
}
